#pragma once

#include "Image.h"
#include "Pointer.h"

struct TGAHeader
{
	unsigned char ImgIdent;
	unsigned char ignored[ 1 ];
	unsigned char ImgType;
	unsigned char ignored2[ 9 ];
	unsigned char WidthLo;
	unsigned char WidthHi;
	unsigned char HeightLo;
	unsigned char HeightHi;
	unsigned char Bpp;
	unsigned char ignored3[ 1 ];
};

Pointer<char> ReadFile( std::string filename );
bool LoadTGA( Pointer<char> data, Image& image );
bool LoadTGA( std::string filename, Image& image );